import React, {Component} from 'react';
import {observer} from 'mobx-react';
import { withRouter } from 'react-router-dom';
import { Tools } from "weaver-mobile";
const getLabel = Tools.getLabel;

@withRouter
@observer
export default class ClearBar extends Component{
    render(){
        const {store} = this.props;
        const {clearHistory} = store;
        return (
            <div className='clear'>
                <span onClick={() => clearHistory()}>{getLabel(390060, '清空最近')}</span>
            </div>
        )
    }
}